﻿@model AMAP.Areas.Public.Models.Test.TestViewModel

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>TestLineViewModel</legend>
        
        <div class="editor-field">
            <input type="text" value="" name="Lines[0].Text1" />
        </div>
        <div class="editor-field">
            <input type="text" value="" name="Lines[0].Text2" />
        </div>
        <div class="editor-field">
            <input type="text" value="" name="Lines[1].Text1" />
        </div>
        <div class="editor-field">
            <input type="text" value="" name="Lines[1].Text2" />
        </div>
        <div class="editor-field">
            <input type="text" value="" name="Lines[2].Text1" />
        </div>
        <div class="editor-field">
            <input type="text" value="" name="Lines[2].Text2" />
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
